name: Auto Request Review
on:
  pull_request_target:
    types: [opened, ready_for_review, reopened]

permissions:
  contents: read

jobs:
  auto-request-review:
    name: Auto Request Review
    runs-on: ubuntu-latest
    if: ${{ github.repository == 'ruby/ruby' }}
    steps:
      - name: Request review based on files changes and/or groups the author belongs to
        uses: necojackarc/auto-request-review@6a51cebffe2c084705d9a7b394abd802e0119633 # v0.12.0
        with:
          # scope: public_repo
          token: ${{ secrets.MATZBOT_GITHUB_TOKEN }}
